package com.sofoscorp.android.gestcobranzamobile;


import android.os.Parcel;
import android.os.Parcelable;

public class KNA1_Str implements Parcelable{

	private String KUNNR;
	private String NAME1;
	private String NAME2;
	private String DIRECCION;
	private String TLF;
	private String EMAIL;
	private String STCD1;
	private String STCD2;
	private String KDKG1;
	private String KVGR1;
	private String VKORG;
	private String VTWEG;
	private String SPART;
	private String ZTERM;
	private String KDGRP;
	private String VKGRP;
	private String BZIRK;
	private String ERDAT;
	private String PLTYP;
	private String KTOKD;
	private String AUFSD;
	
	public KNA1_Str(String kunnr, String name1, String name2, String direccion,
			        String tlf, String email, String stcd1, String stcd2,
			        String kdkg1, String kvgr1, String vkorg, String vtweg,
			        String spart, String zterm, String kdgrp, String vkgrp,
			        String bzirk, String erdat, String pltyp, String ktokd,
			        String aufsd) {

		this.KUNNR = kunnr;
		this.NAME1 = name1;
		this.NAME2 = name2;
		this.DIRECCION = direccion;
		this.TLF = tlf;
		this.EMAIL = email;
		this.STCD1 = stcd1;
		this.STCD2 = stcd2;
		this.KDKG1 = kdkg1;
		this.KVGR1 = kvgr1;
		this.VKORG = vkorg;
		this.VTWEG = vtweg;
		this.SPART = spart;
		this.ZTERM = zterm;
		this.KDGRP = kdgrp;
		this.VKGRP = vkgrp;
		this.BZIRK = bzirk;
		this.ERDAT = erdat;
		this.PLTYP = pltyp;
		this.KTOKD = ktokd;
		this.AUFSD = aufsd;
	}

	public KNA1_Str(Parcel in) { 
		readFromParcel(in); 
		} 
	
	public String getKUNNR(){
		return this.KUNNR;
	}
	
	public String getNAME1(){
		return this.NAME1;
	}

	public String getNAME2(){
		return this.NAME2;
	}	
	
	public String getDIRECCION(){
		return this.DIRECCION;
	}
	
	public String getTLF(){
		return this.TLF;
	}
	
	public String getEMAIL(){
		return this.EMAIL;
	}	
	
	public String getSTCD1(){
		return this.STCD1;
	}	
	
	public String getSTCD2(){
		return this.STCD2;
	}	
	
	public String getKDKG1(){
		return this.KDKG1;
	}	
	
	public String getKVGR1(){
		return this.KVGR1;
	}		
	
	public String getVKORG(){
		return this.VKORG;
	}	
	
	public String getVTWEG(){
		return this.VTWEG;
	}
	
	public String getSPART(){
		return this.SPART;
	}	
	
	public String getZTERM(){
		return this.ZTERM;
	}	
	
	public String getKDGRP(){
		return this.KDGRP;
	}		
	
	public String getVKGRP(){
		return this.VKGRP;
	}	
	
	public String getBZIRK(){
		return this.BZIRK;
	}	
	
	public String getERDAT(){
		return this.ERDAT;
	}		
	
	public String getPLTYP(){
		return this.PLTYP;
	}		
	
	public String getKTOKD(){
		return this.KTOKD;
	}		

	public String getAUFSD(){
		return this.AUFSD;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(this.KUNNR);
		dest.writeString(this.NAME1);
		dest.writeString(this.NAME2);
		dest.writeString(this.DIRECCION);
		dest.writeString(this.TLF);
		dest.writeString(this.EMAIL);
		dest.writeString(this.STCD1);
		dest.writeString(this.STCD2);
		dest.writeString(this.KDKG1);
		dest.writeString(this.KVGR1);
		dest.writeString(this.VKORG);
		dest.writeString(this.VTWEG);
		dest.writeString(this.SPART);
		dest.writeString(this.ZTERM);
		dest.writeString(this.KDGRP);
		dest.writeString(this.VKGRP);
		dest.writeString(this.BZIRK);
		dest.writeString(this.ERDAT);
		dest.writeString(this.PLTYP);
		dest.writeString(this.KTOKD);
		dest.writeString(this.AUFSD);
		
	}			
	
	private static KNA1_Str readFromParcel(Parcel in){
		
		String KUNNR = in.readString();
		String NAME1 = in.readString();
		String NAME2 = in.readString();
		String DIRECCION = in.readString();
		String TLF = in.readString();
		String EMAIL = in.readString();
		String STCD1 = in.readString();
		String STCD2 = in.readString();
		String KDKG1 = in.readString();
		String KVGR1 = in.readString();
		String VKORG = in.readString();
		String VTWEG = in.readString();
		String SPART = in.readString();
		String ZTERM = in.readString();
		String KDGRP = in.readString();
		String VKGRP = in.readString();
		String BZIRK = in.readString();
		String ERDAT = in.readString();
		String PLTYP = in.readString();
		String KTOKD = in.readString();
		String AUFSD = in.readString();		
		
		return new KNA1_Str(KUNNR, NAME1, NAME2, DIRECCION, TLF, EMAIL,
				            STCD1, STCD2, KDKG1, KVGR1, VKORG, VTWEG,
				            SPART, ZTERM, KDGRP, VKGRP, BZIRK, ERDAT,
				            PLTYP, KTOKD, AUFSD);
		
	}
	
	public static final Parcelable.Creator CREATOR = new Parcelable.Creator() { 
		public KNA1_Str createFromParcel(Parcel in) { 
			return readFromParcel(in); 
			}   
		public KNA1_Str[] newArray(int size) { 
			return new KNA1_Str[size]; 
			} 
		};	
	
}
